//==============================================================================
// granary_anim.txt
//==============================================================================

import Construction_defines_anim.txt

//==============================================================================
define empower
{
   SetSelector
   {
      EmpowerLogic
      SetSelector
      {
         set hotspot
         {
            version
            {
               Visualnone Jimmy
            }
         }
      }
      SetSelector
      {
         set hotspot
         {
            version
            {
               Visualparticle SFX E Pharaoh Empower Small
            }
         }
      }
   }
}
//==============================================================================
define Shield
{
   TechLogic Copper shields/Bronze shields/Iron shields
   set hotspot
   {
      version
      {
         Visual Attachments G Shield wood
      }
   }
   set hotspot
   {
      version
      {
         Visual Attachments G Shield iron
      }
   }
   set hotspot
   {
      version
      {
         Visual Attachments G Shield bronze
      }
   }
}

//==============================================================================
define VINEA
{
   set hotspot
   {
      version
      {
         Visual Building VineA
      }
   }  
}
//==============================================================================
define VINEB
{
   set hotspot
   {
      version
      {
         Visual Building VineB
      }
   }  
}


//==============================================================================
define CypressB
{
   set hotspot
   {
      version
      {
         Visual Terrain G CypressB
      }
   }  
}

//==============================================================================
define Dust
{
   set hotspot
   {
      version
      {
         Visualparticle SFX A Building DustA
      }
   }  
}
//==============================================================================
anim idle
{
   SetSelector
   {
      CultureLogic Egyptian/Greek
//---------------------------------Norse---------------------------------------//
       //---------------------------Age 1--------------------------------//   
      SetSelector
      {
         TechLogic none/age 2/age 3/age 4
         SetSelector
         { 
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building E Granary age1
                  Replacetexture building e age1/norsemod age1
                  Replacetexture building e age2 accessories/norse mod acces1
                  connect ATTACHPOINT empower hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
                  Replacetexture building e age1/norsemod age1
                  Replacetexture building e age2 accessories/norse mod acces1
                  connect ATTACHPOINT empower hotspot
		            connect CHIN N_Small_Brick hotspot
		            connect FACE N_Medium_Brick hotspot
		            connect ATTACHPOINT N_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
                  Replacetexture building e age1/norsemod age1
                  Replacetexture building e age2 accessories/norse mod acces1
                  connect ATTACHPOINT empower hotspot
		            connect CHIN N_Small_Brick hotspot
		            connect FACE N_Medium_Brick hotspot
		            connect ATTACHPOINT N_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building E Granary Construction
                  Replacetexture building e age1/norsemod age1
                  Replacetexture building e age2 accessories/norse mod acces1
                  connect ATTACHPOINT empower hotspot
		            connect CHIN N_Small_Brick hotspot
		            connect FACE N_Medium_Brick hotspot
		            connect ATTACHPOINT N_Long_Brick hotspot
               }
            }
         }
        //---------------------------Age 2--------------------------------//
         SetSelector
         { 
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building E Granary age2
                  Replacetexture building e age2/norsemod age2
                  Replacetexture building e age2 accessories/norse mod acces2
                  connect ATTACHPOINT empower hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
                  Replacetexture building e age2/norsemod age2
                  Replacetexture building e age2 accessories/norse mod acces2
                  connect ATTACHPOINT empower hotspot
		            connect CHIN N_Small_Brick hotspot
		            connect FACE N_Medium_Brick hotspot
		            connect ATTACHPOINT N_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
                  Replacetexture building e age2/norsemod age2
                  Replacetexture building e age2 accessories/norse mod acces2
                  connect ATTACHPOINT empower hotspot
		            connect CHIN N_Small_Brick hotspot
		            connect FACE N_Medium_Brick hotspot
		            connect ATTACHPOINT N_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building E Granary Construction
                  Replacetexture building e age2/norsemod age2
                  Replacetexture building e age2 accessories/norse mod acces2
                  connect ATTACHPOINT empower hotspot
		            connect CHIN N_Small_Brick hotspot
		            connect FACE N_Medium_Brick hotspot
		            connect ATTACHPOINT N_Long_Brick hotspot
               }
            }
         }
        //---------------------------Age 3--------------------------------//
         SetSelector
         { 
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building E Granary age3
                  Replacetexture building e age3/norsemod age3
                  Replacetexture building e age3 accessories/granary accessories age3
                  connect ATTACHPOINT empower hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
                  Replacetexture building e age3/norsemod age3
                  Replacetexture building e age3 accessories/granary accessories age3
                  connect ATTACHPOINT empower hotspot
		            connect CHIN N_Small_Brick hotspot
		            connect FACE N_Medium_Brick hotspot
		            connect ATTACHPOINT N_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
                  Replacetexture building e age3/norsemod age3
                  Replacetexture building e age3 accessories/granary accessories age3
                  connect ATTACHPOINT empower hotspot
		            connect CHIN N_Small_Brick hotspot
		            connect FACE N_Medium_Brick hotspot
		            connect ATTACHPOINT N_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building E Granary Construction
                  Replacetexture building e age3/norsemod age3
                  Replacetexture building e age3 accessories/granary accessories age3
                  connect ATTACHPOINT empower hotspot
		            connect CHIN N_Small_Brick hotspot
		            connect FACE N_Medium_Brick hotspot
		            connect ATTACHPOINT N_Long_Brick hotspot
               }
            }
         }
        //---------------------------Age 4--------------------------------//
         SetSelector
         { 
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building E Granary age4
                  Replacetexture building e age4/norsemod age4
                  Replacetexture building e age4roof/norse mod acces4
                  connect ATTACHPOINT empower hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
                  Replacetexture building e age4/norsemod age4
                  Replacetexture building e age4roof/norse mod acces4
                  connect ATTACHPOINT empower hotspot
		            connect CHIN N_Small_Brick hotspot
		            connect FACE N_Medium_Brick hotspot
		            connect ATTACHPOINT N_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
                  Replacetexture building e age4/norsemod age4
                  Replacetexture building e age4roof/norse mod acces4
                  connect ATTACHPOINT empower hotspot
		            connect CHIN N_Small_Brick hotspot
		            connect FACE N_Medium_Brick hotspot
		            connect ATTACHPOINT N_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building E Granary Construction
                  Replacetexture building e age4/norsemod age4
                  Replacetexture building e age4roof/norse mod acces4
                  connect ATTACHPOINT empower hotspot
		            connect CHIN N_Small_Brick hotspot
		            connect FACE N_Medium_Brick hotspot
		            connect ATTACHPOINT N_Long_Brick hotspot
               }
            }
         } 
      }                
//---------------------------------Greek------------------------------------------//
//---------------------------Age 0--------------------------------//              
      SetSelector
      {
         TechLogic none/age 2/age 3/age 4
         SetSelector
         {
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building G StorehouseAge0
						connect Rightfoot VineA hotspot
						connect Rightear VineB hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building G ConstructionStorehouse
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
         }
      //---------------------------Age 1--------------------------------//              
         SetSelector
         {
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building G StorehouseAge1
						connect Rightfoot VineA hotspot
						connect Rightear VineB hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building G ConstructionStorehouse
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
         }
      //---------------------------Age 2--------------------------------//
         SetSelector
         {
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building G StorehouseAge2
						connect Rightfoot VineA hotspot
						connect Rightear VineB hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building G ConstructionStorehouse
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
         }
      //---------------------------Age 3--------------------------------//
         SetSelector
         {
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building G StorehouseAge3
						connect Rightfoot VineA hotspot
						connect Rightear VineB hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building G ConstructionStorehouse
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
         }
      }

	}
}


//==============================================================================
anim Death
{
   SetSelector
   {
      CultureLogic Egyptian/Greek
//---------------------------------Egyptian---------------------------------------//
       //---------------------------Age 1--------------------------------//   
      SetSelector
      {
         TechLogic none/age 2/age 3/age 4
         SetSelector
         { 
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building E Granary age1_Death
                  Replacetexture building e age1/norsemod age1
                  Replacetexture building e age2 accessories/norse mod acces1
							connect Smoke0 Dust hotspot
							connect Smoke1 Dust hotspot
							connect Smoke2 Dust hotspot
							connect Smoke3 Dust hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
                  Replacetexture building e age1/norsemod age1
                  Replacetexture building e age2 accessories/norse mod acces1
                  connect ATTACHPOINT empower hotspot
		            connect CHIN E_Small_Brick hotspot
		            connect FACE E_Medium_Brick hotspot
		            connect ATTACHPOINT E_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
                  Replacetexture building e age1/norsemod age1
                  Replacetexture building e age2 accessories/norse mod acces1
                  connect ATTACHPOINT empower hotspot
		            connect CHIN E_Small_Brick hotspot
		            connect FACE E_Medium_Brick hotspot
		            connect ATTACHPOINT E_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building E Granary Construction
                  Replacetexture building e age1/norsemod age1
                  Replacetexture building e age2 accessories/norse mod acces1
                  connect ATTACHPOINT empower hotspot
		            connect CHIN E_Small_Brick hotspot
		            connect FACE E_Medium_Brick hotspot
		            connect ATTACHPOINT E_Long_Brick hotspot
               }
            }
         }
        //---------------------------Age 2--------------------------------//
         SetSelector
         { 
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building E Granary age2_Death
                  Replacetexture building e age2/norsemod age2
                  Replacetexture building e age2 accessories/norse mod acces2
							connect Smoke0 Dust hotspot
							connect Smoke1 Dust hotspot
							connect Smoke2 Dust hotspot
							connect Smoke3 Dust hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
                  Replacetexture building e age2/norsemod age2
                  Replacetexture building e age2 accessories/norse mod acces2
                  connect ATTACHPOINT empower hotspot
		            connect CHIN E_Small_Brick hotspot
		            connect FACE E_Medium_Brick hotspot
		            connect ATTACHPOINT E_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
                  Replacetexture building e age2/norsemod age2
                  Replacetexture building e age2 accessories/norse mod acces2
                  connect ATTACHPOINT empower hotspot
		            connect CHIN E_Small_Brick hotspot
		            connect FACE E_Medium_Brick hotspot
		            connect ATTACHPOINT E_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building E Granary Construction
                  Replacetexture building e age2/norsemod age2
                  Replacetexture building e age2 accessories/norse mod acces2
                  connect ATTACHPOINT empower hotspot
		            connect CHIN E_Small_Brick hotspot
		            connect FACE E_Medium_Brick hotspot
		            connect ATTACHPOINT E_Long_Brick hotspot
               }
            }
         }
        //---------------------------Age 3--------------------------------//
         SetSelector
         { 
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building E Granary age3_Death
                  Replacetexture building e age3/norsemod age3
                  Replacetexture building e age3 accessories/granary accessories age3
							connect Smoke0 Dust hotspot
							connect Smoke1 Dust hotspot
							connect Smoke2 Dust hotspot
							connect Smoke3 Dust hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
                  Replacetexture building e age3/norsemod age3
                  Replacetexture building e age3 accessories/granary accessories age3
                  connect ATTACHPOINT empower hotspot
		            connect CHIN E_Small_Brick hotspot
		            connect FACE E_Medium_Brick hotspot
		            connect ATTACHPOINT E_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
                  Replacetexture building e age3/norsemod age3
                  Replacetexture building e age3 accessories/granary accessories age3
                  connect ATTACHPOINT empower hotspot
		            connect CHIN E_Small_Brick hotspot
		            connect FACE E_Medium_Brick hotspot
		            connect ATTACHPOINT E_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building E Granary Construction
                  Replacetexture building e age3/norsemod age3
                  Replacetexture building e age3 accessories/granary accessories age3
                  connect ATTACHPOINT empower hotspot
		            connect CHIN E_Small_Brick hotspot
		            connect FACE E_Medium_Brick hotspot
		            connect ATTACHPOINT E_Long_Brick hotspot
               }
            }
         }
        //---------------------------Age 4--------------------------------//
         SetSelector
         { 
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building E Granary age4_Death
                  Replacetexture building e age4/norsemod age4
                  Replacetexture building e age4roof/norse mod acces4
							connect Smoke0 Dust hotspot
							connect Smoke1 Dust hotspot
							connect Smoke2 Dust hotspot
							connect Smoke3 Dust hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
                  Replacetexture building e age4/norsemod age4
                  Replacetexture building e age4roof/norse mod acces4
                  connect ATTACHPOINT empower hotspot
		            connect CHIN E_Small_Brick hotspot
		            connect FACE E_Medium_Brick hotspot
		            connect ATTACHPOINT E_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
                  Replacetexture building e age4/norsemod age4
                  Replacetexture building e age4roof/norse mod acces4
                  connect ATTACHPOINT empower hotspot
		            connect CHIN E_Small_Brick hotspot
		            connect FACE E_Medium_Brick hotspot
		            connect ATTACHPOINT E_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building E Granary Construction
                  Replacetexture building e age4/norsemod age4
                  Replacetexture building e age4roof/norse mod acces4
                  connect ATTACHPOINT empower hotspot
		            connect CHIN E_Small_Brick hotspot
		            connect FACE E_Medium_Brick hotspot
		            connect ATTACHPOINT E_Long_Brick hotspot
               }
            }
         } 
      }                
//---------------------------------Greek------------------------------------------//
//---------------------------Age 0--------------------------------//              
      SetSelector
      {
         TechLogic none/age 2/age 3/age 4
         SetSelector
         {
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building G StorehouseAge0_Death
							connect Smoke0 Dust hotspot
							connect Smoke1 Dust hotspot
							connect Smoke2 Dust hotspot
							connect Smoke3 Dust hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building G ConstructionStorehouse
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
         }
      //---------------------------Age 1--------------------------------//              
         SetSelector
         {
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building G StorehouseAge1_Death
							connect Smoke0 Dust hotspot
							connect Smoke1 Dust hotspot
							connect Smoke2 Dust hotspot
							connect Smoke3 Dust hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building G ConstructionStorehouse
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
         }
      //---------------------------Age 2--------------------------------//
         SetSelector
         {
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building G StorehouseAge2_Death
							connect Smoke0 Dust hotspot
							connect Smoke1 Dust hotspot
							connect Smoke2 Dust hotspot
							connect Smoke3 Dust hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building G ConstructionStorehouse
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
         }
      //---------------------------Age 3--------------------------------//
         SetSelector
         {
            ConstructionLogic 0 33 66
            set hotspot
            {
               version
               {
                  Visual Building G StorehouseAge3_Death
							connect Smoke0 Dust hotspot
							connect Smoke1 Dust hotspot
							connect Smoke2 Dust hotspot
							connect Smoke3 Dust hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small A
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building Construction small B
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
            set hotspot
            {
               version
               {
                  Visual Building G ConstructionStorehouse
		            connect CHIN G_Small_Brick hotspot
		            connect FACE G_Medium_Brick hotspot
		            connect ATTACHPOINT G_Long_Brick hotspot
               }
            }
         }
      }

	}
}